#color1{
  background-color: blueviolet;
  width: 100px;
  height: 100px;
  display: flex; 
  backface-visibility: hidden;
  /* 后两个属性有浏览器兼容性问题，测试用 */
}
img{
  width: 100px;
  height: 100px;
  border: 1px solid grey;
}